<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ page contentType="text/html; charset=utf-8" %>
<%@ include file="common.jsp" %>
<% request.setCharacterEncoding("utf-8");%>
<% response.setContentType("text/html;charset=utf-8");%>

<html>
    <head><title>TitleBookDescription</title>
        <link href="CSS/style1.css" rel="stylesheet">
    </head>
    <body>
        <br>
        <jsp:useBean id="book" scope="page" class="bis.FLBook" />
        <c:if test="${param.bookId!=null}">
        <jsp:setProperty name="book" property="id" value="${param.bookId}" />
        </c:if>
        <c:forEach var="current" items="${book.dateByid}">
            <c:choose>
                <c:when test="${current==null}">
                    <p>书号"${param.bookId}"在数据库中不存在</p>
                    <strong><a href="<%=request.getContextPath()%>/catalog.jsp">继续购物</a></strong>
                </c:when>
                <c:otherwise>
                    <table width="100%" border="0" >
                        <tr>
                            <td><center>
                                    <table width="750" border="0" bgcolor="#FFFFFF">
                                        <tr>
                                            <td valign="top"><jsp:include page="banner.jsp"/></td>
                                        </tr>

                                        <tr>
                                            <td> <table width="100%" height="126"  border="0" cellpadding="0" cellspacing="0">

                                                    <tr>
                                                        <td><table width="100%" height="123"  border="0" cellpadding="0" cellspacing="0">
                                                                <tr>
                                                                    <td width="23%" align="center" valign="top"><img src="manage/pic/<c:out value="${current.picPath}" escapeXml="false"></c:out>" width="110" height="158"></td>
                                                                    <td width="77%"><table width="100%" height="202"  border="0" cellpadding="0" cellspacing="0">
                                                                            <tr>
                                                                                <td width="16%" height="24">书&nbsp;&nbsp;号：</td>
                                                                                <td width="84%"><c:out value="${current.bm}" escapeXml="false"></c:out></td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td width="16%" height="24">书&nbsp;&nbsp;名：</td>
                                                                                <td width="84%"><c:out value="${current.mc}" escapeXml="false"></c:out></td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td height="24">出版社：</td>
                                                                                <td><c:out value="${current.publisher}" escapeXml="false"></c:out></td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td height="24">作&nbsp;&nbsp;者：</td>
                                                                                <td><c:out value="${current.author}" escapeXml="false"></c:out></td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td height="24">定 &nbsp;价：</td>
                                                                                <td><c:out value="${current.price}" escapeXml="false"></c:out>（元）</td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td height="24">出版日期：</td>
                                                                                <td><c:out value="${current.pubDate}" escapeXml="false"></c:out></td>
                                                                            </tr>
                                                                            <tr><td height="39" colspan="2"><c:out value="${current.content}" escapeXml="false"></c:out></td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td height="40" colspan="2">
                                                                                    <%if (session.getAttribute(
                "UserName") != null) {%>
                                                                                    <input name="Submit5" type="submit" class="btn_grey" value="放入购物车"  onClick="window.location.href='catalog.jsp?Add=<%%>'">
                                                                                    <%}%>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                                                                    <input name="Submit52" type="button" class="btn_grey" value="  返  回  " onClick="history.back(1);">

                                                                                </td>
                                                                            </tr>
                                                                    </table></td>
                                                                </tr>
                                                        </table></td>
                                                    </tr>
                                            </table></td>
                                        </tr>

                                    </c:otherwise>
                                </c:choose>
                            </c:forEach>
                            <tr>
                                <td><jsp:include page="copyright.jsp"/></td>
                            </tr>
                        </table>

                </center></td>
            </tr>
        </table>
    </body>
</html>